'''
幼儿园体检要对小朋友们的体重做评估，对超出平均体重的小朋友需要提示他们进行锻炼。
‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬编程实现：输入若干个体重，输出比平均体重更重的那些体重
'''

def main():
    stu_num = int(input('请输入学生数量:'))
    weights = []
    sum_weight = 0
    weight = 0
    for i in range(stu_num):
        weight = int(input('输入体重:'))
        weights.append(weight)
        sum_weight += weight
    av_weight = sum_weight / stu_num
    print(av_weight)
    for i in range(len(weights)):
        if int(weights[i]) > av_weight:
            print(weights[i],end='----')
            print('小朋友需要锻炼')
    

main()
